import known.Common;
import known.Lucky;
import known.RedPacket;

public class RedPacketTest {
    public static void main(String[] args) {
        // 创建红包对象
        RedPacket rp = new RedPacket("大红包");
        // 设置群主名称
        rp.setOwnerName("哈哈哈");
        // 设置红包类型，二选一
//        rp.setOpenWay(new Common());
        rp.setOpenWay(new Lucky());

    }
}
